import HomeView from "@/views/HomeView.vue";

import { RouteRecordRaw } from "vue-router";
import aboutView from "@/views/AboutView.vue";

const routers: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "主页",
    component: HomeView,
  },
  {
    path: "/bank",
    name: "题库",
    component: aboutView,
  },
  {
    path: "/qusetion",
    name: "题目",
    component: aboutView,
  },
  {
    path: "/admin",
    name: "管理",
    children: [
      {
        path: "/admin/user",
        name: "用户管理",
        component: aboutView,
      },
    ],
  },
];

export default routers;
